#################################################################
# config your default value
# ARCH=xxxx
# please run command select toolchain before "make":   ".  stc"

# root@~ $ . stc
# which toolchain
#          0 x86
#          1 arm-linux-_____for_mx287_linux
#          2 arm-linux-gnueabi_____for_qemu
#          3 stm32_gcc-9.3.1______for_uboot/linux-5
#          4 stm32_gcc-5.4.1________for_rt-thread
#          5 mipsel-linux-______for_ls2k_pmon
#          6 mipsi64el-linux-______for_ls2k_kernel
# Make your choice: 
# 1
# 
# root@~ $ echo $CROSS_COMPILE $ARCH $LD_LIBRARY_PATH
# arm-linux- arm /:/opt/ls2k/gcc-4.4-gnu/lib
# 
# root@~ $ . stc
# which toolchain
#          0 x86
#          1 arm-linux-_____for_mx287_linux
#          2 arm-linux-gnueabi_____for_qemu
#          3 stm32_gcc-9.3.1______for_uboot/linux-5
#          4 stm32_gcc-5.4.1________for_rt-thread
#          5 mipsel-linux-______for_ls2k_pmon
#          6 mipsi64el-linux-______for_ls2k_kernel
# Make your choice: 
# 6
# 
# root@~ $ echo $CROSS_COMPILE $ARCH $LD_LIBRARY_PATH
# mips64el-linux- mips /:/opt/ls2k/gcc-4.9.3-64-gnu/lib


PRJ_VERSION    = "3"
PRJ_PATCHLEVEL = "1"
PRJ_SUBLEVEL   = "0"

SRV_BOOT = /nfs
#################################################################
# INCLUDE_DIR	- Where will be search *.h file
# LFLAGS		- Linking option
# LIB_DIR		- Where will be search *.so/*.a file
#-Wl,-rpath=./:./lib/
#when app.elf run will select *.so/a from $(PATH) -> ./ -> ./lib/

# common export from stc
INCLUDE_DIR	+= -I./ -I~/cross/$(ARCH)/include -I./include
LFLAGS		+= -Wl,-rpath=./:./lib-$(ARCH)/
LIB_DIR 	+= -L~/cross/$(ARCH)/lib -L./lib-$(ARCH) -L${CROSS_LIB_DIRS}
CFLAGS		+= -DTARGET_$(ARCH)  

# todo yours More
ifeq ("$(SOC)", "xxx")
INCLUDE_DIR	+= 
LFLAGS		+= 
LIB_DIR 	+= 
CFLAGS		+= 
endif
#################################################################

